package com.pansky.crm.mapper.mysql;

import com.pansky.crm.common.mybatisplus.SuperMapper;
import com.pansky.crm.entity.Privilege;
import com.pansky.crm.entity.vo.RolePrivilegeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ：zhouzhiyong
 * @date ：Created in 2021/2/22 10:35
 * @description：权限mapper
 */
@Mapper
public interface PrivilegeMapper  extends SuperMapper<Privilege> {

    List<Privilege> findPrivilegeByRoleId(Integer roleId);

    List<RolePrivilegeVo> findMenuPrivilege(@Param("key") String key);
}
